Skip to content

Enhance examples for @@SERVICENAME usage#10357

Open
way0utwest wants to merge 1 commit into
MicrosoftDocs:livefrom
way0utwest:patch-69
Open

Enhance examples for @@SERVICENAME usage#10357
way0utwest wants to merge 1 commit into
MicrosoftDocs:livefrom
way0utwest:patch-69

Conversation

@way0utwest

Copy link
Copy Markdown
Contributor

Added examples for using @@SERVICENAME with default and named instances.

Added examples for using @@SERVICENAME with default and named instances.
@prmerger-automator

Copy link
Copy Markdown
Contributor

@way0utwest : Thanks for your contribution! The author(s) and reviewer(s) have been notified to review your proposed change.

@prmerger-automator

Copy link
Copy Markdown
Contributor

@way0utwest : Thanks for your contribution! The author(s) and reviewer(s) have been notified to review your proposed change.

@learn-build-service-prod

Copy link
Copy Markdown
Contributor

Learn Build status updates of commit 8a933c8:

✅ Validation status: passed

File Status Preview URL Details
docs/t-sql/functions/servicename-transact-sql.md ✅Succeeded

For more details, please refer to the build report.

@v-dirichards

Copy link
Copy Markdown
Contributor

@VanMSFT

Can you review the proposed changes?

Important: When the changes are ready for publication, adding a #sign-off comment is the best way to signal that the PR is ready for the review team to merge.

#label:"aq-pr-triaged"
@MicrosoftDocs/public-repo-pr-review-team

@prmerger-automator prmerger-automator Bot added the aq-pr-triaged tracking label for the PR review team label Jun 29, 2026

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR enhances the @@SERVICENAME documentation by expanding the Examples section to show expected output for both default and named SQL Server instances.

Changes:

  • Refines the existing example description to explicitly target a default instance.
  • Adds a second example demonstrating @@SERVICENAME behavior for a named instance (example output shows the instance name).

MSSQLSERVER
```

The following example shows using `@@SERVICENAME` for an named instance, named Localhost\SQL2022.
@rwestMSFT

Copy link
Copy Markdown
Contributor

#reassign:rwestMSFT

@prmerger-automator prmerger-automator Bot assigned rwestMSFT and unassigned VanMSFT Jul 2, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants